<div class="flexform">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'subsite-form',
        'enableAjaxValidation' => false
            ));
    ?>
    <div class="row">
        <?php echo $form->labelEx($model, 'domain'); ?>
        <?php echo $form->textField($model, 'domain', array('size' => 50, 'maxlength' => 50, 'title' => '不需要输入www', 'class' => 'tip')); ?>
        <?php echo $form->error($model, 'domain', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <!--    <div class="row">
    <?php echo $form->labelEx($model, 'site_key'); ?>
    <?php echo $form->textField($model, 'site_key', array('size' => 60, 'maxlength' => 100)); ?>
    <?php echo $form->error($model, 'site_key', array('class' => 'form-msg-error-advanced')); ?>
        </div>-->

    <div class="row">
        <?php echo $form->labelEx($model, 'server_name'); ?>
        <?php echo $form->dropDownList($model, 'server_name', Yii::app()->params->hostings); ?>
        <?php echo $form->error($model, 'server_name', array('class' => 'form-msg-error-advanced')); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model, 'livechat'); ?>
        <?php echo $form->textArea($model, 'livechat', array('cols' => 80)); ?>
        <?php echo $form->error($model, 'livechat', array('class' => 'form-msg-error-advanced')); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model, 'link_phone'); ?>
        <?php echo $form->textField($model, 'link_phone', array('size' => 50, 'maxlength' => 225)); ?>
        <?php echo $form->error($model, 'link_phone', array('class' => 'form-msg-error-advanced')); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model, 'link_mail'); ?>
        <?php echo $form->textField($model, 'link_mail', array('size' => 50, 'maxlength' => 225)); ?>
        <?php echo $form->error($model, 'link_mail', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    
    <div class="row">
        <?php echo $form->labelEx($model, 'ipaddress'); ?>
        <?php echo $form->textField($model, 'ipaddress', array('size' => 50, 'maxlength' => 225)); ?>
        <?php echo $form->error($model, 'ipaddress', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'title'); ?>
        <?php echo $form->textField($model, 'title', array('size' => 60, 'maxlength' => 225)); ?>
        <?php echo $form->error($model, 'title', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'keywords'); ?>
        <?php echo $form->textArea($model, 'keywords', array('cols' => 80)); ?>
        <?php echo $form->error($model, 'keywords', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'description'); ?>
        <?php echo $form->textArea($model, 'description', array('cols' => 80, 'maxlength' => 225)); ?>
        <?php echo $form->error($model, 'description', array('class' => 'form-msg-error-advanced')); ?>
    </div>
    
    <div class="row">
        <?php echo $form->labelEx($model, 'oa_from_web'); ?>
        <?php echo $form->textField($model, 'oa_from_web', array('size' => 30, 'maxlength' => 30)); ?>
        <?php echo $form->error($model, 'oa_from_web', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'order_prefix'); ?>
        <?php echo $form->textField($model, 'order_prefix', array('size' => 30, 'maxlength' => 30)); ?>
        <?php echo $form->error($model, 'order_prefix', array('class' => 'form-msg-error-advanced')); ?>
    </div>
    
    <div class="row">
        <?php echo $form->labelEx($model, 'paymail'); ?>
        <?php echo $form->textField($model, 'paymail', array('size' => 50, 'maxlength' => 225)); ?>
        <?php echo $form->error($model, 'paymail', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'remit'); ?>
        <div style="padding-left: 130px;width: 60%;">
            <?php
            $this->widget('application.extensions.ckeditor.CKEditor', array(
                "model" => $model, # Data-Model
                "attribute" => 'remit', # Attribute in the Data-Model
                "width" => '60%',
            ));
            ?>
        </div>
        <?php echo $form->error($model, 'remit', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="action">
        <?php echo CHtml::submitButton($model->isNewRecord ? '创建' : '保存'); ?>
    </div>
    <?php $this->endWidget(); ?>
</div><!-- form -->
<div class="clear"></div>